package com.baidu.manager.common.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Author: jql
 * @description: TODO()
 * @Date: Created by 13:43 2018/4/20
 */
public class ShiroToken implements AuthenticationToken{

    private String token;

    public ShiroToken(String token){
        this.token = token;
    }
    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
